<?php

namespace App\Model;


use App\ModelBase\__t_wx_qr;
use XWX\Common\H;

class t_wx_qr extends __t_wx_qr
{
    /**
     * 获取二维码访问链接
     * @param $ticket
     * @return string
     */
    public function getQrUrl()
    {
        $url = "";
        if (H::funcStrIsNullOrEmpty($this->wxqr_type))
        {
            $url = "https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=" . urlencode($this->wxqr_info);
        }

        return $url;
    }
}